package com.cn.main.extract;

import java.util.List;

import com.cn.main.extract.job.JobRunner;
import com.cn.main.util.XmlHelper;

public class JobStart {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		List<TaskNode> list = XmlHelper.loadTaskJob("conf/MysqlToMysql.xml");
		if(list!=null && !list.isEmpty()){
			System.out.println(list.size());
			JobRunner job = new JobRunner(list);
			job.start();
		}
		System.out.println("job run finish....");
	}

}
